package com.resou.reader.reader.end;

import android.app.Activity;

import com.resou.reader.api.entry.BookDetailBean;
import com.resou.reader.base.BasePresenter;
import com.resou.reader.base.BaseView;
import com.umeng.socialize.UMShareListener;

import java.util.List;

/**
 * 阅读器阅读到最后一页后的显示推荐页的接口类
 */
public interface ContractEndBookInterface {
    interface IEndBookView extends BaseView {

        void recommentBook(List<BookDetailBean> list);

        /**
         * 显示评论数量
         *
         * @param num
         */
        void showCommentNum(String num);

        /**
         * 显示书详情
         *
         * @param bookDetailBean
         */
        void showBookDetail(BookDetailBean bookDetailBean);
    }

    interface IEndBookPresenter extends BasePresenter {

        /**
         * 获取推荐书籍列表
         */
        void quearRecommentBookList(String bookId);

        /**
         * 获取评论数量
         *
         * @param bookId
         */
        void quearCommentNum(String bookId);

        /**
         * 获取书详情
         *
         * @param bookId
         */
        void quearBookDetail(String bookId);

        void share(Activity activity, String shareUrl, BookDetailBean bookDetailBean, UMShareListener shareListener);
    }
}
